export default {
  history: 'hash',
  publicPath:'./',
  plugins: [
    [
      'umi-plugin-react',
      {
        antd: true,
        dva: true,
      },
    ],
  ],
  routes: [
    {
      path: '/addFenlei',
      component: './addFenlei',
    },
    {
      path: '/',
      component: '../pages/index',
    },
    {
      path: '/home',
      component: '../layouts/home',
      routes: [
        {
          path: '/home/userList',
          component: '../pages/userList',
        },
        {
          path: '/home/addUser',
          component: '../pages/addUser',
        },
        {
          path: '/home/productList',
          component: '../pages/productList',
        },
        {
          path: '/home/addProduct',
          component: '../pages/addProduct',
        },
		{
		  path: '/home/addFenlei',
		  component: '../pages/addFenlei',
		},
        {
          path: '/home/fenlei',
          component: '../pages/fenlei',
        },
        {
          path: '/home/oderList',
          component: '../pages/orderList',
        },
        {
          path: '/home/404',
          component: '../pages/404',
        },
        {
          path: '/home/searchProduct',
          component: '../pages/searchProduct',
        },
        {
          path: '/home/searchUsers',
          component: '../pages/searchUsers',
        },
        {
          path: '/home/searchProductFenLei',
          component: '../pages/searchProductFenLei',
        },
        {
          path: '/home/searchOrder',
          component: '../pages/searchOrder',
        },
      ],
    },
  ],
};
